import { ref } from 'vue'

const useIndex = () => {
  let currentIndex = ref(0)
  const changeIndex = (index) => {
    currentIndex.value = index
  }

  return {
    currentIndex,
    changeIndex
  }
}

export default useIndex